package com.hakim.wfb.dao;

import com.hakim.wfb.admin.params.interest.QueryConsumeInterestParamWebPage;
import com.hakim.wfb.bean.ConsumeInterest;
import com.hakim.wfb.admin.params.interest.GetConsumeInterestParam;
import com.hakim.wfb.admin.result.interest.ConsumeInterestView;
import com.hkfs.fundamental.database.PageDaoBase;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConsumeInterestDao extends PageDaoBase<ConsumeInterest, Long> {

    /**
     * @param param
     * @return
     */
    ConsumeInterest getConsumeInterest(GetConsumeInterestParam param);

    /**
     * @param param
     * @return
     */
    List<ConsumeInterestView> queryConsumeInterest(QueryConsumeInterestParamWebPage param);

    /**
     * @param parameter
     * @return
     */
    int countQuery(QueryConsumeInterestParamWebPage parameter);
}
